import * as fs from 'fs'
import * as path from 'path'

interface Config {
  port: number
  backend: string
}

const config: Config = JSON.parse(fs.readFileSync(path.join(__dirname, '../config.json'), 'utf-8'))
process.env.BACKEND = config.backend
export default config
